package library.po;

import lombok.Data;

@Data
public class User {
    private String userId;

    private String userName;

    private String userSex;

    private String userPassword;

    private Integer userCredit;

    private Integer userType;


    public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserSex() {
		return userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public Integer getUserCredit() {
		return userCredit;
	}

	public void setUserCredit(Integer userCredit) {
		this.userCredit = userCredit;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public User(String userId,String userPassword,Integer userType){
        this.setUserId(userId);
        this.setUserPassword(userPassword);
        this.setUserType(userType);
    }

    public User(){
        super();
    }

    public User(String userId, String password, String userName, String sex, int type,int credit) {
        this.userName = userName;
        this.userId = userId;
        this.userPassword = password;
        this.userSex = sex;
        this.userType = type;
        this.userCredit = credit;
    }
}